using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_DuTruMuaThuocCT: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_DuTruMuaThuocCTFields
		{
			DuTruCT_ID,
			DuTru_ID,
			MaVT,
			TenVT,
			NuocSX,
			DVT,
			SLban,
			SLton,
			SLduTru,
			SoLuongDuyet,
			DonGia,
			GhiChu,
			TinhTrang,
			Field1,
			Field2,
			Field3,
			Field4,
			Field5
		}
		#endregion

		#region Data Members

			decimal _duTruCT_ID;
			decimal? _duTru_ID;
			string _maVT;
			string _tenVT;
			string _nuocSX;
			string _dVT;
			double? _sLban;
			double? _sLton;
			double? _sLduTru;
			double? _soLuongDuyet;
			double? _donGia;
			string _ghiChu;
			byte? _tinhTrang;
			string _field1;
			string _field2;
			string _field3;
			string _field4;
			string _field5;

		#endregion

		#region Properties

		public decimal  DuTruCT_ID
		{
			 get { return _duTruCT_ID; }
			 set
			 {
				 if (_duTruCT_ID != value)
				 {
					_duTruCT_ID = value;
				 }
			 }
		}

		public decimal?  DuTru_ID
		{
			 get { return _duTru_ID; }
			 set
			 {
				 if (_duTru_ID != value)
				 {
					_duTru_ID = value;
				 }
			 }
		}

		public string  MaVT
		{
			 get { return _maVT; }
			 set
			 {
				 if (_maVT != value)
				 {
					_maVT = value;
				 }
			 }
		}

		public string  TenVT
		{
			 get { return _tenVT; }
			 set
			 {
				 if (_tenVT != value)
				 {
					_tenVT = value;
				 }
			 }
		}

		public string  NuocSX
		{
			 get { return _nuocSX; }
			 set
			 {
				 if (_nuocSX != value)
				 {
					_nuocSX = value;
				 }
			 }
		}

		public string  DVT
		{
			 get { return _dVT; }
			 set
			 {
				 if (_dVT != value)
				 {
					_dVT = value;
				 }
			 }
		}

		public double?  SLban
		{
			 get { return _sLban; }
			 set
			 {
				 if (_sLban != value)
				 {
					_sLban = value;
				 }
			 }
		}

		public double?  SLton
		{
			 get { return _sLton; }
			 set
			 {
				 if (_sLton != value)
				 {
					_sLton = value;
				 }
			 }
		}

		public double?  SLduTru
		{
			 get { return _sLduTru; }
			 set
			 {
				 if (_sLduTru != value)
				 {
					_sLduTru = value;
				 }
			 }
		}

		public double?  SoLuongDuyet
		{
			 get { return _soLuongDuyet; }
			 set
			 {
				 if (_soLuongDuyet != value)
				 {
					_soLuongDuyet = value;
				 }
			 }
		}

		public double?  DonGia
		{
			 get { return _donGia; }
			 set
			 {
				 if (_donGia != value)
				 {
					_donGia = value;
				 }
			 }
		}

		public string  GhiChu
		{
			 get { return _ghiChu; }
			 set
			 {
				 if (_ghiChu != value)
				 {
					_ghiChu = value;
				 }
			 }
		}

		public byte?  TinhTrang
		{
			 get { return _tinhTrang; }
			 set
			 {
				 if (_tinhTrang != value)
				 {
					_tinhTrang = value;
				 }
			 }
		}

		public string  Field1
		{
			 get { return _field1; }
			 set
			 {
				 if (_field1 != value)
				 {
					_field1 = value;
				 }
			 }
		}

		public string  Field2
		{
			 get { return _field2; }
			 set
			 {
				 if (_field2 != value)
				 {
					_field2 = value;
				 }
			 }
		}

		public string  Field3
		{
			 get { return _field3; }
			 set
			 {
				 if (_field3 != value)
				 {
					_field3 = value;
				 }
			 }
		}

		public string  Field4
		{
			 get { return _field4; }
			 set
			 {
				 if (_field4 != value)
				 {
					_field4 = value;
				 }
			 }
		}

		public string  Field5
		{
			 get { return _field5; }
			 set
			 {
				 if (_field5 != value)
				 {
					_field5 = value;
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("DuTruCT_ID", "DuTruCT_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("MaVT", "MaVT",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("TenVT", "TenVT",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("NuocSX", "NuocSX",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DVT", "DVT",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("GhiChu", "GhiChu",10));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field1", "Field1",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field2", "Field2",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field3", "Field3",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field4", "Field4",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Field5", "Field5",50));
		}

		#endregion

	}
}
